home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update17.zoo / gprof / diffs < prev   
Encoding:
Text File  |  1992-03-08  |  3.8 KB  |  158 lines

  1. *** 1.5    1991/06/24 17:51:18
  2. --- Changelog    1992/03/08 17:49:16
  3. ***************
  4. *** 34,36 ****
  5. --- 34,48 ----
  6.         (this is to catch cases where there is no '\' in the pathname)
  7.   
  8.   ------------------------------- Patchlevel 4 ---------------------------
  9. + gprof.c:: ++jrb
  10. +     pass underscores to the demangler.
  11. +     link in demangler
  12. + cplusdem.c:: ++jrb
  13. +     c++ demangler
  14. + Makefile:: ++jrb
  15. +     link in demangler
  16. + ------------------------------- Patchlevel 5 ---------------------------
  17. *** 1.3    1991/06/23 21:21:03
  18. --- Makefile    1992/03/08 17:49:16
  19. ***************
  20. *** 22,28 ****
  21.   CROSSBIN = $(CROSSDIR)/bin
  22.   
  23.   CC = $(CROSSBIN)/cgcc
  24. ! CFLAGS = -O -DATARI=1 -I. -fomit-frame-pointer -fcombine-regs -DNDEBUG
  25.   
  26.   # Use the GNU getopt unless you have problems with it.
  27.   GNU_GETOPT = getopt.o
  28. --- 22,28 ----
  29.   CROSSBIN = $(CROSSDIR)/bin
  30.   
  31.   CC = $(CROSSBIN)/cgcc
  32. ! CFLAGS = -O2 -DATARI=1 -I. -fomit-frame-pointer -DNDEBUG
  33.   
  34.   # Use the GNU getopt unless you have problems with it.
  35.   GNU_GETOPT = getopt.o
  36. ***************
  37. *** 32,39 ****
  38.   
  39.   all: $(PROGS) $(TESTS)
  40.   
  41. ! gprof.ttp: gprof.o $(GNU_GETOPT_LONG)
  42. !     $(CC) -o gprof.ttp gprof.o $(GNU_GETOPT_LONG) -s
  43.   gprof.o: gprof.c gmon.h 
  44.       $(CC) -c $(CFLAGS) gprof.c $(OUTPUT_OPTION)
  45.   
  46. --- 32,39 ----
  47.   
  48.   all: $(PROGS) $(TESTS)
  49.   
  50. ! gprof.ttp: gprof.o cplusdem.o $(GNU_GETOPT_LONG)
  51. !     $(CC) -o gprof.ttp gprof.o cplusdem.o $(GNU_GETOPT_LONG) -s
  52.   gprof.o: gprof.c gmon.h 
  53.       $(CC) -c $(CFLAGS) gprof.c $(OUTPUT_OPTION)
  54.   
  55. *** 1.6    1991/06/24 17:51:18
  56. --- PatchLev.h    1992/03/08 17:49:16
  57. ***************
  58. *** 1,4 ****
  59. ! #define    PatchLevel "04"
  60.   
  61.   /*
  62.    *    the Patch Level above is to identify the version
  63. --- 1,4 ----
  64. ! #define    PatchLevel "05"
  65.   
  66.   /*
  67.    *    the Patch Level above is to identify the version
  68. *** 1.5    1991/06/23 23:04:47
  69. --- gprof.c    1992/03/08 17:49:18
  70. ***************
  71. *** 2118,2129 ****
  72.     for (sym= &tmpsyms[0], i=0; sym<&tmpsyms[n]; sym++) {
  73.       if (!badsym (sym)) {
  74.         syms[i].name=sym->n_un.n_name;
  75. - #ifndef nounderscore
  76. -       /* Remove the initial _ from the symbol name */
  77. -       if (*(syms[i].name)=='_')
  78. -     syms[i].name++;
  79. - #endif
  80.         syms[i].value=sym->n_value;
  81.         i++;
  82.       }
  83. --- 2118,2123 ----
  84. ***************
  85. *** 2793,2800 ****
  86.   
  87.     n=0;
  88.     for (np=syms, endp= &syms[nsym]; np<endp; np++) {
  89. !     char *demangled = cplus_demangle (np->name);
  90. !     char *name = demangled == NULL ? np->name : demangled;
  91.       
  92.       sprintf (buf, "%-15s %#6lx %d %2d.%2d[%d]",
  93.            name, np->value, np->histo, np->ncalled, np->ncalls, np->cycnum);
  94. --- 2787,2804 ----
  95.   
  96.     n=0;
  97.     for (np=syms, endp= &syms[nsym]; np<endp; np++) {
  98. !   char *demangled = cplus_demangle (np->name);
  99. !   char *name;
  100. !     if (demangled)
  101. !       name = demangled;
  102. !     else {
  103. !       name = np->name;
  104. ! #ifndef nounderscore
  105. !       if (*name == '_')
  106. !     name++;
  107. ! #endif
  108. !     }
  109.       
  110.       sprintf (buf, "%-15s %#6lx %d %2d.%2d[%d]",
  111.            name, np->value, np->histo, np->ncalled, np->ncalls, np->cycnum);
  112. ***************
  113. *** 2973,2979 ****
  114.   {
  115.     char *demangled = cplus_demangle (name);
  116.     if (demangled == NULL)
  117. !     fputs (name, stream);
  118.     else
  119.       {
  120.         fputs (demangled, stream);
  121. --- 2977,2989 ----
  122.   {
  123.     char *demangled = cplus_demangle (name);
  124.     if (demangled == NULL)
  125. !   {
  126. ! #ifndef nounderscore
  127. !       if (*name == '_')
  128. !     name++;
  129. ! #endif
  130. !       fputs (name, stream);
  131. !   }
  132.     else
  133.       {
  134.         fputs (demangled, stream);
  135. ***************
  136. *** 2981,2987 ****
  137.       }
  138.   }
  139.   
  140. ! #ifdef atarist
  141.   /* let this be dummy for now, 
  142.      if you want to throw in the cplusplus name demangler, simple
  143.      delete this function, and link with cplus-dem.o
  144. --- 2991,2997 ----
  145.       }
  146.   }
  147.   
  148. ! #if 0
  149.   /* let this be dummy for now, 
  150.      if you want to throw in the cplusplus name demangler, simple
  151.      delete this function, and link with cplus-dem.o
  152.